package com.lovo.bbs.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName t_post
 */
@TableName(value ="t_post")
@Data
public class Post implements Serializable {
    /**
     * 
     */
    @TableId(value = "p_id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "p_title")
    private String title;

    /**
     * 
     */
    @TableField(value = "p_content")
    private String content;


    private User user;

    @TableField(value = "p_u_id")
    private int userId;
    /**
     * 
     */
    @TableField(value = "p_create_date",fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     * 
     */
    @TableField(value = "p_update_date",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}